package com.wu.ssm.study.matcher;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by wzf on 2018/12/19/019.
 */
public class Main {
    public static void main(String[] args) {
        Pattern p =Pattern.compile("a*b");

        Matcher m =p.matcher("baaaaab");

        boolean b = m.matches();
        System.out.println(b);
    }
}
